
package sessions;

import entities.Adminclass;
import entities.Adminclasspopedom;
import entities.Adminmanage;
import entities.Adminpopedom;
import java.util.ArrayList;
import javax.ejb.Local;


/**
 * This is the business interface for Admin enterprise bean.
 */
@Local
public interface AdminLocal { 

    

    Adminmanage loginAdmin(String adminname, String password);


    boolean checkPopedom(Integer classid, Integer popedom);

    boolean modifyAdmin(Adminmanage adminer);

    boolean addAdmin(Adminmanage admin);

    Adminclass queryAdminclass(Integer classid);

    Adminmanage queryAdminmanage(String adminname);

    void deleteAdmin(Adminmanage admin);   

    boolean addAdminclass(Adminclass adminclass);

    Adminclass queryAdminclass(String adminname);

    //boolean addadminclasspopedom(Adminclass adminclass, ArrayList popedomlist);

    //boolean addadminclasspopedom(Adminclass adminclass, ArrayList<Integer> popedomlist);

    Adminpopedom queryAdminpopedom(int popedomid);

    boolean addadminclasspopedom(Adminclasspopedom adminclasspopedom);

   // boolean queryAdminclasspopedom(int popedomid, int classlevel);

    boolean queryAdminclasspopedom(Adminpopedom popedomid, Adminclass classlevel);

    

    

   
    
}
